package com.loren.designer.handler;

import org.h2.tools.Server;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class H2StartupHandler implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        // jdbc:h2:tcp://127.0.0.1:9093/./h2.designer
        Server.createTcpServer("-tcpPort", "9093").start();
    }
}
